x11: Make gdk_surface_get_position() return relative position
authorJonas Ådahl <jadahl@gmail.com>
Sat, 15 Feb 2020 23:28:01 +0000 (00:28 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 19 Feb 2020 08:47:18 +0000 (09:47 +0100)
commit40693412d3ccdc875b3e8ea635ffcb5b6c75cbd4
tree8a6d5a67875a4172b772ec99d8a7b829d1b54f3a
parent2bb0eddfb55c7e6fe2d500b7e27400d0ded17321
x11: Make gdk_surface_get_position() return relative position

The returned position should be relative to the parent surface, but
GdkSurface::x,y were only managed properly for O-R windows. This makes
it correct for regular windows too.
gdk/x11/gdkdisplay-x11.c